From 46d30e402079f922a0f3a61d772431c39082591e Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 6 May 2004 13:26:45 +0000 Subject: [PATCH] Fix mem corruption when using get_posn. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@798 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index 802e96338..43d536ebd 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -155,7 +155,7 @@ waypt_read(void) waypoint *wpt = waypt_new(); wpt->latitude = gps_save_lat; wpt->longitude = gps_save_lon; - wpt->shortname = "Position"; + wpt->shortname = xstrdup("Position"); waypt_add(wpt); return; } -- 2.30.2